package cn.sciento.onelink.sim.aggregative.smart.voice.group;

import cn.sciento.onelink.CommonResponse;
import cn.sciento.onelink.LinkRequest;
import cn.sciento.onelink.utils.ParamUtil;
import cn.sciento.onelink.utils.TransIdUtil;
import lombok.Data;

import java.util.HashMap;

/**
 * 集团智能网语音信息查询
 * @author waltonlee
 */
@Data
public class SimGroupSmartVoiceRequest extends LinkRequest<CommonResponse<SimGroupSmartVoiceResult>> {
    private String appId;
    private String token;
    private String pageSize;
    private String startNum;

    public SimGroupSmartVoiceRequest(String appId, String token, String pageSize, String startNum) {
        super(Method.GET);
        this.appId = appId;
        this.token = token;
        this.pageSize = pageSize;
        this.startNum = startNum;
        this.path = "/ec/query/group-smart-voice";
        HashMap<String, Object> bodyMap = new HashMap<String, Object>();
        bodyMap.put("token", token);
        bodyMap.put("transid", TransIdUtil.generate(appId));
        bodyMap.put("pageSize", pageSize);
        bodyMap.put("startNum", startNum);
        this.setCompleteUrl(this.path,bodyMap);
    }
}
